<?php
# Common Constants
# ----------------
define('SUCCESS_NO',99999);
define('SUCCESS_ERROR','请求成功');

define('REQUEST_NO', 77777);
define('REQUEST_ERROR', '请求失败');

define('BAD_PARAM_NO',20000);
define('BAD_PARAM_ERROR','参数错误');

define('SETTING_NO', 20002);
define('SETTING_ERROR', '设置失败');

define('SUBMIT_FAIL_NO', 20007);
define('SUBMIT_FAIL_ERROR', '提交失败');

define('NOTEXIST_WALLETADDRESS_NO', 20008);
define('NOTEXIST_WALLETADDRESS_ERROR', '未绑定钱包地址');

define('SIGN_FAIL_NO', 20009);
define('SIGN_FAIL_ERROR', '验签失败');

define('CUSTOMER_NO',10003);
define('CUSTOMER_ERROR','自定义错误');

define('CREATE_TRADEOFFER_FAIL_NO', 30001);
define('CREATE_TRADEOFFER_FAIL_ERROR', '创建交易报价失败');

define('STEAM_INVENTORY_CHANGE_NO',30002);
define('STEAM_INVENTORY_CHANGE_ERROR','提交物品发生变化,请强制刷新库存');

define('BAD_ROBOT_LOGIN_NO',30003);
define('BAD_ROBOT_LOGIN_ERROR','steam接口未响应，请重试');

define('USER_INVENTORY_NO_OPEN',30004);
define('USER_INVENTORY_NO_OPEN_ERROR','库存不公开');

define('TRADEURL_FORMAT_NO', 30009);
define('TRADEURL_FORMAT_ERROR', '交易链接格式错误');

define('TRADEURL_MATCH_NO', 30010);
define('TRADEURL_MATCH_ERROR', '交易链接与当前认证的Steam账号不匹配');

define('TRADEURL_CHECK_NO', 30011);
define('TRADEURL_CHECK_ERROR', '交易链接检查失败');

define('TRADEURL_SET_NO', 30012);
define('TRADEURL_SET_ERROR', '设置失败,稍后重试');

define('TRADEURL_NOTEXIST_NO', 30014);
define('TRADEURL_NOTEXIST_ERROR', '交易链接未设置');

define('HAS_CREATING_ORDER_NO', 30015);
define('HAS_CREATING_ORDER_ERROR', '你有未完成的交易报价');

define('INVENTORY_EMPTY_NO', 30016);
define('INVENTORY_EMPTY_ERROR', '库存为空');

define('USER_INVENTORY_NO', 30018);
define('USER_INVENTORY_ERROR', '获取库存失败,稍后重试');

define('BAD_APPID_NO', 40001);
define('BAD_APPID_NO_ERROR', '游戏appid错误');

define('BAD_ACCESS_TOKEN_NO',40003);
define('BAD_ACCESS_TOKEN_ERROR','access_token验证失败');

define('DOTA_CLOSED_NO', 40005);
define('DOTA_CLOSED_ERROR', 'dota2暂停回收，开放时间请见公告');

define('USER_WITHDRAW_ACCOUNT_NO', 40006);
define('USER_WITHDRAW_ACCOUNT_ERROR', '账户格式有误，请重新填写');

